﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Simple.ISysService;
using Simple.Tools;
using SimpleSaas.Common;
using SimpleSaas.Entity.Dto;
using SimpleSaas.Web.Common;

namespace SimpleSaasUser.Controllers
{
	[Route("api/sys-app")]
	[ApiController]
	public class SysAppController : BaseController
	{
		[Autowired]
		protected ISysAppService sysAppService { get; set; }

		/// <summary>
		/// 
		/// </summary>
		/// <param name="sysAppDto"></param>
		/// <returns></returns>
		[HttpPost()]
		public async Task<SimpleSaas.Common.BaseMessage> AddAsync([FromBody] SysAppDto sysAppDto)
		{
			await sysAppService.AddAsync(sysAppDto);
			return Ok200();
		}
	}
}